From f79c213b33bf934c098683253c7d44b53193124b Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Fri, 20 Jun 2008 11:06:46 +0000 Subject: [PATCH] Seal GtkLayout svn path=/trunk/; revision=20588 --- gtk/gtk.symbols | 1 + gtk/gtklayout.c | 17 +++++++++++++++++ gtk/gtklayout.h | 23 ++++++++++++----------- 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 25b24cbc7c..4b05d89b8b 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -2028,6 +2028,7 @@ gtk_label_set_width_chars #if IN_HEADER(__GTK_LAYOUT_H__) #if IN_FILE(__GTK_LAYOUT_C__) +gtk_layout_get_bin_window gtk_layout_get_hadjustment gtk_layout_get_size gtk_layout_get_type G_GNUC_CONST diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index dbc36777d7..82cf4c6105 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -47,6 +47,7 @@ struct _GtkLayoutChild { enum { PROP_0, + PROP_BIN_WINDOW, PROP_HADJUSTMENT, PROP_VADJUSTMENT, PROP_WIDTH, @@ -142,6 +143,22 @@ gtk_layout_new (GtkAdjustment *hadjustment, return GTK_WIDGET (layout); } +/** + * gtk_layout_get_bin_window: + * @layout: a #GtkLayout + * + * Retrieve the bin window of the layout used for drawing operations. + * + * Return value: a #GdkWindow + **/ +GdkWindow* +gtk_layout_get_bin_window (GtkLayout *layout) +{ + g_return_val_if_fail (GTK_IS_LAYOUT (layout), NULL); + + return layout->bin_window; +} + /** * gtk_layout_get_hadjustment: * @layout: a #GtkLayout diff --git a/gtk/gtklayout.h b/gtk/gtklayout.h index d3e42889b2..d9743c63ef 100644 --- a/gtk/gtklayout.h +++ b/gtk/gtklayout.h @@ -54,25 +54,25 @@ typedef struct _GtkLayoutClass GtkLayoutClass; struct _GtkLayout { - GtkContainer container; + GtkContainer GSEAL (container); - GList *children; + GList *GSEAL (children); - guint width; - guint height; + guint GSEAL (width); + guint GSEAL (height); - GtkAdjustment *hadjustment; - GtkAdjustment *vadjustment; + GtkAdjustment *GSEAL (hadjustment); + GtkAdjustment *GSEAL (vadjustment); /*< public >*/ - GdkWindow *bin_window; + GdkWindow *GSEAL (bin_window); /*< private >*/ - GdkVisibilityState visibility; - gint scroll_x; - gint scroll_y; + GdkVisibilityState GSEAL (visibility); + gint GSEAL (scroll_x); + gint GSEAL (scroll_y); - guint freeze_count; + guint GSEAL (freeze_count); }; struct _GtkLayoutClass @@ -93,6 +93,7 @@ struct _GtkLayoutClass GType gtk_layout_get_type (void) G_GNUC_CONST; GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); +GdkWindow* gtk_layout_get_bin_window (GtkLayout *layout); void gtk_layout_put (GtkLayout *layout, GtkWidget *child_widget, gint x, -- 2.30.2